<template>
  <button @click="subCount">-</button>
</template>

<script>
import { mapState } from 'vuex'

export default {
  data () {
    return {

    }
  },

  created () {

  },
  computed: {
    ...mapState(['count'])
  },
  methods: {
    subCount () {
      this.count--
    }
  }
}
</script>

<style scoped lang='less'>

</style>
